/**
  * Created by Joshua Conero(O'Uymas) on 2017/1/14 0014.
  * QQ: 957376074
  * E-mail: Brximl@163.com
  * 数据库类型判断 - 默认 MySQL
  */
package conero.sql
class dbType(databaseType:String) {

  // 类构造器
  def this() = this("")

  var dbtype = if(databaseType != "") databaseType.toLowerCase() else "mysql"
  private var columnSombol = ""
  private var valueSombol = ""
  // 数据标识符设置  mysql/pgsql/orcl/sqlite
  columnSombol = dbtype match{
    case "mysql" =>
      valueSombol = "'"
      "`"
    case "orcl" =>
      valueSombol = "'"
      "\""
    case "sqlite" =>
      valueSombol = "\""
      "\""
  }
  def getColSmb():String = columnSombol
  def getValSmb():String = valueSombol
}
